package com.crm.manager.domain;

import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class Configuration {

        public final static Integer TYPE_CLUE = 0;
        public final static Integer TYPE_BUSINESS = 1;

        private Integer id;
        private Integer limitTime;
        @JsonSerialize(using = ToStringSerializer.class)
        private Integer limitTimeType; // 0:小时，1：天，2：周
        private Integer warnTime;
        @JsonSerialize(using = ToStringSerializer.class)
        private Integer warnTimeType; // 0:小时前，1：天前，2：周前
        private Integer repeatGetTime;
        @JsonSerialize(using = ToStringSerializer.class)
        private Integer repeatType; // 0:天以后，1：周以后，2：个月以后
        private Integer maxNunmber;
        @JsonSerialize(using = ToStringSerializer.class)
        private Integer type; // 0：线索，1：商机
        private LocalDateTime createTime;
        private LocalDateTime updateTime;
        private Integer createBy;
        private Integer updateBy;
}


